package mapper.datasource;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

public class MapperApiDatasource extends AbstractRoutingDataSource {

    @Override
    protected Object determineCurrentLookupKey() {
        System.out.println("DataSourceContextHolder.getDatasource-----------------> " + DataSourceContextHolder.getCurrentDatasourceName());
        return DataSourceContextHolder.getCurrentDatasourceName();
    }
}

